﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace JGSoft.U9CRTAPIEX.DTOs.RequestDTOs
{
	/// <summary>
	/// 调入单单头
	/// </summary>
	public class TransferInRData
    {
		/// <summary>
		/// 第三方数据唯一性标识，此字段需要返回
		/// </summary>

		public string OtherID { get; set; }

		/// <summary>
		/// 日期
		/// </summary>

		[Required]
		public DateTime BusinessDate { get; set; }

		/// <summary>
		/// 组织Code
		/// </summary>

		public string Org_Code { get; set; }

		/// <summary>
		/// 单据类型Code
		/// </summary>

		[Required]
		public string TransInDocType_Code { get; set; }

		/// <summary>
		/// 单号
		/// </summary>

		public string DocNo { get; set; }

		/// <summary>
		/// 扩展字段
		/// </summary>

		public DescFlexFieldRData DescFlexField { get; set; }

		/// <summary>
		/// 调拨类型
		///  0：组织间调拨；1：仓库转储；2：库位转储；3：委外加工发料；4：委托代销发货；5：委外加工退料；6：委托代销退货；7：委托代销调货；8：货主间调拨
		/// </summary>

		public int TransferType { get; set; }

		/// <summary>
		/// 调拨方向
		/// </summary>

		public int TransferDirection { get; set; }

		/// <summary>
		/// 调入单行
		/// </summary>

		public List<TransInLineRData> TransInLines { get; set; }
	}
}
